package com.cavy.platform.server.mapper;

import com.cavy.platform.server.domain.Plugin;
import com.cavy.platform.server.dto.PluginCreateDto;
import com.cavy.platform.server.dto.PluginDto;
import com.cavy.platform.server.dto.PluginModifyDto;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

@Mapper
public interface PluginMapper {
    PluginMapper INSTANCE = Mappers.getMapper(PluginMapper.class);

    Plugin convertToPlugin(PluginCreateDto dto);

    Plugin convertToPlugin(PluginModifyDto dto);

    PluginDto convertToPluginDto(Plugin info);
}
